package poo.main;

import poo.banca.ContoBancario;

public class TestContoBancario {

	public static void main(String[] args) {
		ContoBancario cb = new ContoBancario("51/3477/22", 1000);
		cb.deposita(30);
		if (cb.preleva(250))
			System.out.println(cb.saldo());
		else
			System.out.println("Operazione non possibile!");

		ContoBancario cb1 = new ContoBancario("51/3477/22");
		cb1.deposita(124213);
		System.out.println(cb1.saldo());

		ContoBancario cb2 = new ContoBancario("51/3477/22");
		cb2.deposita(4242);
		cb2.preleva(99999);
		System.out.println(cb2.saldo());
		

	}

}
